keywords: ip pbx voip gateway gsm gateway

×

Notice

The forum is in read only mode.
× Technical information on install and config asterisk, zaptel under different OSs

The Asterisk detects the analog phone hangup slowly

14 years 4 months ago #4401 by Jimmy
The project is in China, and we haven't connect to the PSTN, it is a closed system.
And the IP phone does not get this problem.

i] Last edited by Jimmy at 2009-12-19 10:12 [/i
14 years 4 months ago #4403 by james.zhu
hi:
you have to set the driver with china mode when load the driver. modprobe fxm8XXX opermode=CHINA and set the country to china in indication.conf.
regards!
James.zhu

14 years 4 months ago #4404 by Jimmy
Thank you, James.

Here is my case:

The card driver of Synway, fxm8apci does not provide such module parameter opermode. it provides only the four parameters:
module_param(debug, int, 0600);
module_param(battthresh, int, 0600);
module_param(alawoverride, int, 0600);
module_param(ECHO_OPEN, int, 0600);

=========================================
[root@mymailserver ~]# lsmod | grep zaptel
zaptel 191108 19 fxm8apci
crc_ccitt 6337 1 zaptel
==========================================
here is the /etc/asterisk/indications.conf

[general]
country=cn ;default location

[cn]
description = China
; Reference: http://www.itu.int/ITU-T/inr/forms/files/tones-0203.pdf
ringcadence = 1000,4000
dial = 450
busy = 450/350,0/350
ring = 450/1000,0/4000
congestion = 450/700,0/700
callwaiting = 450/400,0/4000
dialrecall = 450
record = 950/400,0/10000
info = 450/100,0/100,450/100,0/100,450/100,0/100,450/400,0/400
; STUTTER - not specified
stutter = 450+425

=====================================================

The problem still existed.

I don't know how to do now, could James and somebody others help me?
14 years 4 months ago #4416 by miaolin
You are using sanway card, so I think you should ask them for help.
14 years 4 months ago #4418 by Jimmy
Yes, you are right. We have asked SynWay for help, but they thought it was the zaptel or asterisk, not theirs.
Something proves that their card works well, the card get and pass the on/off hook signal immediately.

I have insert some debug information into the zaptel-1.4.12, and here is the messages in /var/log/messages


[root@localhost ~]# vim /var/log/messages
Dec 20 15:29:37 localhost kernel: Leave __zt_hooksig_pvt
Dec 20 15:29:37 localhost kernel: FXM8APCI Interrupt Time
= 1216
Dec 20 15:29:41 localhost kernel: shfxm: Card 5 Going on hook
Dec 20 15:29:41 localhost kernel: Enter __zt_hooksig_pvt
Dec 20 15:29:41 localhost kernel: Leave __zt_hooksig_pvt
Dec 20 15:29:41 localhost kernel: FXM8APCI Interrupt Time
= 1217
Dec 20 15:29:47 localhost kernel: shfxm: Card 5 Going off hook
Dec 20 15:29:47 localhost kernel: Enter __zt_hooksig_pvt
Dec 20 15:29:47 localhost kernel: Leave __zt_hooksig_pvt
Dec 20 15:29:47 localhost kernel: FXM8APCI Interrupt Time
= 1217
Dec 20 15:29:55 localhost kernel: shfxm: Card 5 Going on hook
Dec 20 15:29:55 localhost kernel: Enter __zt_hooksig_pvt
Dec 20 15:29:55 localhost kernel: Leave __zt_hooksig_pvt
Dec 20 15:29:55 localhost kernel: FXM8APCI Interrupt Time
= 1217
Dec 20 15:30:03 localhost kernel: shfxm: Card 5 Going off hook
Dec 20 15:30:03 localhost kernel: Enter __zt_hooksig_pvt
Dec 20 15:30:03 localhost kernel: Leave __zt_hooksig_pvt
Dec 20 15:30:03 localhost kernel: FXM8APCI Interrupt Time
= 1215
Dec 20 15:30:05 localhost kernel: shfxm: Card 5 Going on hook
Dec 20 15:30:05 localhost kernel: Enter __zt_hooksig_pvt
Dec 20 15:30:05 localhost kernel: Leave __zt_hooksig_pvt
Dec 20 15:30:05 localhost kernel: FXM8APCI Interrupt Time
= 1216
Dec 20 15:30:07 localhost kernel: shfxm: Card 5 Going off hook

from above, shfxm, the driver name of FXM8APCI card, got the on/off hook signals, and send this to the zaptel __zt_hoosig_pvt immediately. It is too hard for me to hack the zaptel and asterisk, :( , I am not very familiar with them.
Any ideas?
14 years 4 months ago #4419 by james.zhu
hi:
you can check that from:
20 15:29:37 to 20 15:30:07, it take 30 seconds. please check that. hope someone can help you.
regards!
James.zhu

Time to create page: 0.050 seconds
Powered by Kunena Forum